/**
 * @description: Login interface parameters
 */
export interface LoginParams {
  account: string;
  password: string;
}

export interface ThirdLoginParams {
  clientId: string;
  grantType: string;
}

export interface RoleInfo {
  roleName: string;
  value: string;
}

export interface UserInfo {
  id: string | number;
  isLogin?: boolean;
  userId: string | number;
  userName: string;
  realName: string;
  avatar: string;
  desc?: string;
  homePath?: string;
  tenantId?: string | number;
  roles: RoleInfo[];
  currentTenantId: string
  currentUserPoolId: string
  currentAppId: string
  // 当前选择的服务
  currentServiceCode?: string;
  email: string;
  phone: string;
}

/**
 * @description: Get user information return value
 */
export interface GetUserInfoModel {
  roles: any;

  multiDept?: string | number | boolean;
  userInfo?: UserInfo;
  deptList?:[];
  tenant: {};
  // 缓存字典项
  sysAllDictItems?: any;
}

/**
 * @description: Get user information return value
 */
export interface GetResultModel {
  code: number;
  message: string;
  result: object;
  success: Boolean;
}
